<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<jsp:useBean id="user" class="com.zaprk.bean.User" scope="page"></jsp:useBean>
<%--针对bean对象设置属性--%>
<%
    user.setName("大锤");
    user.setAge(20);
    user.setSex("男");


%>

<h1><%= user %></h1>
</body>
</html>
